package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class OrderingSpecification {

    private int beginIndex;
    private int endIndex;
    private boolean asc;
    private boolean desc;

    public OrderingSpecification(int beginIndex,
                                 int endIndex,
                                 boolean asc,
                                 boolean desc) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.asc = asc;
        this.desc = desc;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isAsc() {
        return asc;
    }

    public boolean isDesc() {
        return desc;
    }

}
